<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>
		<div id="container">
			<div id="content" role="main">
				<div id="que-hay-al-toque" style="width: 632px;float: left;background-color: #F4F4F4;margin-bottom: 8px;padding: 6px;">
					<style>
					.smallmap {width: 512px;height: 256px;border: 1px solid #ccc;}
					.bigmap {width: 600px;height: 400px;border: 1px solid #ccc;}
					</style>
					<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
					<script src="/wp-content/themes/rcd/js/OpenLayers.js"></script>
					<div id="mapol" class="bigmap"></div>
					<script>
						var options = {
							numZoomLevels: 25
							,allOverlays: true
						}
						var map = new OpenLayers.Map("mapol", options);
						
						var wms_santafe = new OpenLayers.Layer.WMS(
							"IDESF",
							"http://www.idesf.santafe.gov.ar/cgi-bin/idesf",
							{layers: "departamentos,limite_provincial,manzanasipec,localidades_point,ejesipec,rutas_nacionales,rutas_sec"}
						);
						map.addLayer(wms_santafe);

						var wms_rosario = new OpenLayers.Layer.WMS(
							"Infomapa Rosario",
							"http://www.rosario.gov.ar/wms/planobase",
							{layers: "sin_manzanas,canteros,av_circunvalacion,manzanas,manzanas_no_regularizada,parcelas,espacios_verdes,hidrografia,avenidas_y_boulevares,segmentos_de_calle,sentidos_de_calle,via_ferroviaria,islas_del_parana,bancos_de_arena,autopistas,nombres_de_calles,numeracion_de_calles,numeros_de_manzana,limite_municipio,puentes"}
						);
						map.addLayer(wms_rosario);
/*						var osm = new OpenLayers.Layer.OSM();
						var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false});*/
/*						map.addLayers([osm, gmap]);*/
						
						var wms_rosario_no_base = new OpenLayers.Layer.WMS(
							"Manzanas",
							"http://www.rosario.gov.ar/wms/planobase",
							{layers: "manzanas,sentidos_de_calle", transparent: "TRUE"},
							{isBaseLayer: false, visibility: false}
						);
/*						map.addLayer(wms_rosario_no_base);*/

						var yelp = new OpenLayers.Icon("/wp-content/themes/rcd/images/marker-mapa-rosario-al-toque.png", new OpenLayers.Size(22,22));
						var newl = new OpenLayers.Layer.GeoRSS( 'Rosario al toque', '/feed/', {'icon':yelp});
						map.addLayer(newl);
						
						map.setCenter(new OpenLayers.LonLat(-60.665817, -32.949911), 7);
						map.addControl(new OpenLayers.Control.LayerSwitcher());
//						map.zoomToMaxExtent();
					</script>
					<!--script src="/wp-content/themes/rcd/js/geolocation.js"></script-->

					<div id="map_canvas_page" style="width:300px; height:300px; position: absolute"></div>
					<!--script>$(document).ready(function(){initialize_page()})</script-->
					<!--/google-->					
				</div>
    		</div><!-- #content -->
			<!--?php get_sidebar(); ?-->
		</div><!-- #container -->

<?php get_footer(); ?>
